home *** CD-ROM | disk | FTP | other *** search
- var MainFrame = window.parent;
- var TimerID = 0;
-
- // DJSMar license Types
- var DJSMAR_LicenseType_Violated = -1;
- var DJSMAR_LicenseType_Retail = 0;
- var DJSMAR_LicenseType_Trial = 1;
- var DJSMAR_LicenseType_Rental = 2;
- var DJSMAR_LicenseType_TryDie = 3;
- var DJSMAR_LicenseType_Beta = 4;
- var DJSMAR_LicenseType_Unlicensed = 5;
- var DJSMAR_LicenseType_ESD = 6;
-
- // DJSMar license Zones
- var DJSMAR_LicenseZone_Trial = (0x00000001); // in a trial period
- var DJSMAR_LicenseZone_Expired = (0x00000002); // the license has expired
- var DJSMAR_LicenseZone_Warning = (0x00000004); // the license is about to expire
- var DJSMAR_LicenseZone_PreActivation = (0x00000008); // the license has never been activated
- var DJSMAR_LicenseZone_PostActivation = (0x00000010); // the license has been activated
- var DJSMAR_LicenseZone_Purchased = (0x00000020); // the license is in a purchased(AKA Activated) state
- var DJSMAR_LicenseZone_Violated = (0x00000040); // the license has been violated (i.e. failed security checks)
- var DJSMAR_LicenseZone_Killed = (0x00000080);
-
- function OnLoad()
- {
- if ( MainFrame.g_bRoadmapFrameLoaded && MainFrame.g_bSelectFrameLoaded )
- {
- UpdatePage();
- }
- else
- {
- // Wait for the other frames to load
- TimerID = window.setInterval( "UpdatePage()", 500 );
- }
- }
-
- function UpdatePage()
- {
- if ( MainFrame.g_bRoadmapFrameLoaded && MainFrame.g_bSelectFrameLoaded )
- {
- clearInterval( TimerID );
-
- var SelectFrame = window.parent.frames("bottom");
-
- try
- {
- stockMessage.style.display="none";
- stockMessage.innerText = g_strViolated.innerText;
- switch ( MainFrame.iLicType )
- {
- case DJSMAR_LicenseType_TryDie:
- if ( ((MainFrame.iLicZone & DJSMAR_LicenseZone_Trial) == DJSMAR_LicenseZone_Trial) )
- stockMessage.innerText = g_strTryDieGrace.innerText;
- else
- stockMessage.innerText = g_strTryDieKilled.innerText;
- break;
-
- case DJSMAR_LicenseType_Beta:
- if ( (MainFrame.iLicZone & (DJSMAR_LicenseZone_Expired|DJSMAR_LicenseZone_PostActivation)) == (DJSMAR_LicenseZone_Expired|DJSMAR_LicenseZone_PostActivation) )
- stockMessage.innerText = g_strBetaExpired.innerText;
- break;
-
- default:
- stockMessage.innerText = g_strViolated.innerText;
- break;
- }
- }
- catch(err)
- {
- stockMessage.innerText = g_strViolated.innerText;
- }
-
- SelectFrame.SkipButton.innerHTML = FinishBtnText.innerHTML;
- SelectFrame.SkipButton.accessKey = FinishHotKey.innerText;
- SelectFrame.SkipButton.style.display="";
-
- stockMessage.style.display="";
- }
- }
-
-